Optimal. Leaf size=202 \[ -\frac{\sqrt{a^2+2 a b x+b^2 x^2} (a-b x) \sqrt{c+d x^2+e x}}{x (a+b x)}+\frac{\sqrt{a^2+2 a b x+b^2 x^2} (2 a d+b e) \tanh ^{-1}\left (\frac{2 d x+e}{2 \sqrt{d} \sqrt{c+d x^2+e x}}\right )}{2 \sqrt{d} (a+b x)}-\frac{\sqrt{a^2+2 a b x+b^2 x^2} (a e+2 b c) \tanh ^{-1}\left (\frac{2 c+e x}{2 \sqrt{c} \sqrt{c+d x^2+e x}}\right )}{2 \sqrt{c} (a+b x)} \]
[Out]
_______________________________________________________________________________________
Rubi [A] time = 0.500607, antiderivative size = 202, normalized size of antiderivative = 1., number of steps used = 7, number of rules used = 6, integrand size = 38, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.158 \[ -\frac{\sqrt{a^2+2 a b x+b^2 x^2} (a-b x) \sqrt{c+d x^2+e x}}{x (a+b x)}+\frac{\sqrt{a^2+2 a b x+b^2 x^2} (2 a d+b e) \tanh ^{-1}\left (\frac{2 d x+e}{2 \sqrt{d} \sqrt{c+d x^2+e x}}\right )}{2 \sqrt{d} (a+b x)}-\frac{\sqrt{a^2+2 a b x+b^2 x^2} (a e+2 b c) \tanh ^{-1}\left (\frac{2 c+e x}{2 \sqrt{c} \sqrt{c+d x^2+e x}}\right )}{2 \sqrt{c} (a+b x)} \]
Antiderivative was successfully verified.
[In] Int[(Sqrt[a^2 + 2*a*b*x + b^2*x^2]*Sqrt[c + e*x + d*x^2])/x^2,x]
[Out]
_______________________________________________________________________________________
Rubi in Sympy [A] time = 63.0626, size = 189, normalized size = 0.94 \[ - \frac{\left (2 a - 2 b x\right ) \sqrt{a^{2} + 2 a b x + b^{2} x^{2}} \sqrt{c + d x^{2} + e x}}{2 x \left (a + b x\right )} + \frac{\left (2 a d + b e\right ) \sqrt{a^{2} + 2 a b x + b^{2} x^{2}} \operatorname{atanh}{\left (\frac{2 d x + e}{2 \sqrt{d} \sqrt{c + d x^{2} + e x}} \right )}}{2 \sqrt{d} \left (a + b x\right )} - \frac{\left (a e + 2 b c\right ) \sqrt{a^{2} + 2 a b x + b^{2} x^{2}} \operatorname{atanh}{\left (\frac{2 c + e x}{2 \sqrt{c} \sqrt{c + d x^{2} + e x}} \right )}}{2 \sqrt{c} \left (a + b x\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] rubi_integrate(((b*x+a)**2)**(1/2)*(d*x**2+e*x+c)**(1/2)/x**2,x)
[Out]
_______________________________________________________________________________________
Mathematica [A] time = 0.389941, size = 168, normalized size = 0.83 \[ \frac{\sqrt{(a+b x)^2} \left (\sqrt{d} x \log (x) (a e+2 b c)-\sqrt{d} x (a e+2 b c) \log \left (2 \sqrt{c} \sqrt{c+x (d x+e)}+2 c+e x\right )+\sqrt{c} \left (2 \sqrt{d} (b x-a) \sqrt{c+x (d x+e)}+x (2 a d+b e) \log \left (2 \sqrt{d} \sqrt{c+x (d x+e)}+2 d x+e\right )\right )\right )}{2 \sqrt{c} \sqrt{d} x (a+b x)} \]
Antiderivative was successfully verified.
[In] Integrate[(Sqrt[a^2 + 2*a*b*x + b^2*x^2]*Sqrt[c + e*x + d*x^2])/x^2,x]
[Out]
_______________________________________________________________________________________
Maple [C] time = 0.018, size = 259, normalized size = 1.3 \[{\frac{{\it csgn} \left ( bx+a \right ) }{2\,x} \left ( 2\,ad\ln \left ( 1/2\,{\frac{2\,\sqrt{d{x}^{2}+ex+c}\sqrt{d}+2\,dx+e}{\sqrt{d}}} \right ){c}^{3/2}x-2\,b{c}^{2}\ln \left ({\frac{2\,c+ex+2\,\sqrt{c}\sqrt{d{x}^{2}+ex+c}}{x}} \right ) x\sqrt{d}+2\,a{d}^{3/2}\sqrt{d{x}^{2}+ex+c}{x}^{2}\sqrt{c}+be\ln \left ({\frac{1}{2} \left ( 2\,\sqrt{d{x}^{2}+ex+c}\sqrt{d}+2\,dx+e \right ){\frac{1}{\sqrt{d}}}} \right ){c}^{{\frac{3}{2}}}x-2\,a \left ( d{x}^{2}+ex+c \right ) ^{3/2}\sqrt{c}\sqrt{d}+2\,ae\sqrt{d{x}^{2}+ex+c}x\sqrt{c}\sqrt{d}+2\,b\sqrt{d{x}^{2}+ex+c}{c}^{3/2}x\sqrt{d}-ae\ln \left ({\frac{1}{x} \left ( 2\,c+ex+2\,\sqrt{c}\sqrt{d{x}^{2}+ex+c} \right ) } \right ) cx\sqrt{d} \right ){c}^{-{\frac{3}{2}}}{\frac{1}{\sqrt{d}}}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] int(((b*x+a)^2)^(1/2)*(d*x^2+e*x+c)^(1/2)/x^2,x)
[Out]
_______________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \[ \text{Exception raised: ValueError} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(sqrt(d*x^2 + e*x + c)*sqrt((b*x + a)^2)/x^2,x, algorithm="maxima")
[Out]
_______________________________________________________________________________________
Fricas [A] time = 0.46141, size = 1, normalized size = 0. \[ \left [\frac{{\left (2 \, a d + b e\right )} \sqrt{c} x \log \left (4 \,{\left (2 \, d^{2} x + d e\right )} \sqrt{d x^{2} + e x + c} +{\left (8 \, d^{2} x^{2} + 8 \, d e x + 4 \, c d + e^{2}\right )} \sqrt{d}\right ) +{\left (2 \, b c + a e\right )} \sqrt{d} x \log \left (-\frac{4 \,{\left (c e x + 2 \, c^{2}\right )} \sqrt{d x^{2} + e x + c} -{\left (8 \, c e x +{\left (4 \, c d + e^{2}\right )} x^{2} + 8 \, c^{2}\right )} \sqrt{c}}{x^{2}}\right ) + 4 \, \sqrt{d x^{2} + e x + c}{\left (b x - a\right )} \sqrt{c} \sqrt{d}}{4 \, \sqrt{c} \sqrt{d} x}, \frac{2 \,{\left (2 \, a d + b e\right )} \sqrt{c} x \arctan \left (\frac{{\left (2 \, d x + e\right )} \sqrt{-d}}{2 \, \sqrt{d x^{2} + e x + c} d}\right ) +{\left (2 \, b c + a e\right )} \sqrt{-d} x \log \left (-\frac{4 \,{\left (c e x + 2 \, c^{2}\right )} \sqrt{d x^{2} + e x + c} -{\left (8 \, c e x +{\left (4 \, c d + e^{2}\right )} x^{2} + 8 \, c^{2}\right )} \sqrt{c}}{x^{2}}\right ) + 4 \, \sqrt{d x^{2} + e x + c}{\left (b x - a\right )} \sqrt{c} \sqrt{-d}}{4 \, \sqrt{c} \sqrt{-d} x}, -\frac{2 \,{\left (2 \, b c + a e\right )} \sqrt{d} x \arctan \left (\frac{{\left (e x + 2 \, c\right )} \sqrt{-c}}{2 \, \sqrt{d x^{2} + e x + c} c}\right ) -{\left (2 \, a d + b e\right )} \sqrt{-c} x \log \left (4 \,{\left (2 \, d^{2} x + d e\right )} \sqrt{d x^{2} + e x + c} +{\left (8 \, d^{2} x^{2} + 8 \, d e x + 4 \, c d + e^{2}\right )} \sqrt{d}\right ) - 4 \, \sqrt{d x^{2} + e x + c}{\left (b x - a\right )} \sqrt{-c} \sqrt{d}}{4 \, \sqrt{-c} \sqrt{d} x}, -\frac{{\left (2 \, b c + a e\right )} \sqrt{-d} x \arctan \left (\frac{{\left (e x + 2 \, c\right )} \sqrt{-c}}{2 \, \sqrt{d x^{2} + e x + c} c}\right ) -{\left (2 \, a d + b e\right )} \sqrt{-c} x \arctan \left (\frac{{\left (2 \, d x + e\right )} \sqrt{-d}}{2 \, \sqrt{d x^{2} + e x + c} d}\right ) - 2 \, \sqrt{d x^{2} + e x + c}{\left (b x - a\right )} \sqrt{-c} \sqrt{-d}}{2 \, \sqrt{-c} \sqrt{-d} x}\right ] \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(sqrt(d*x^2 + e*x + c)*sqrt((b*x + a)^2)/x^2,x, algorithm="fricas")
[Out]
_______________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \[ \int \frac{\sqrt{c + d x^{2} + e x} \sqrt{\left (a + b x\right )^{2}}}{x^{2}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(((b*x+a)**2)**(1/2)*(d*x**2+e*x+c)**(1/2)/x**2,x)
[Out]
_______________________________________________________________________________________
GIAC/XCAS [F(-2)] time = 0., size = 0, normalized size = 0. \[ \text{Exception raised: TypeError} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(sqrt(d*x^2 + e*x + c)*sqrt((b*x + a)^2)/x^2,x, algorithm="giac")
[Out]